Gas is very good for those consistent other times. Batteries are not. Batteries are better for the excess demand during those off times. they offset the backup peaker gas plants as mentioned in the article.
All of which to say the batteries can eat away at the margins of gas plants, but it is incrementally less cost effective to replace each one.
If you operate in an environment where you can supply renewables outside of solar time in quantities high enough to not need the gas, the gas plants will become a lot less useful. Hydro power is the king here. If you don’t have that gas is still probably pretty important.
It might get to the point where a lot of these gas plants are less profitable because they expected to be more relevant and will not be able to justify their fixed costs. But shutting down those plants is probably more expensive to society than just subsidizing them to stay open.
So it’s complicated. The energy and battery side of the inflation reduction act has been HUGE though. Society doesn’t really get how much of an important investment the Biden admin has done here