Batteries.
Or pumped storage. Or lifting a really heavy thing and letting it fall slowly.
Or retaining an amount of fossil fuel capacity to be turned on during peak consumption and sun and wind dips while still focusing on renewables and storage with the goal to reduce the duty cycle of peaker plants to zero.