A Tesla Megapack 2 can provide about 2MW of power, so you need 50 of them to replace the gas peaker. And since they have a 3.8MWh capacity, they only go for about two hours before being depleted, so if you want to cover the whole night when solar is not producing, you need 6x more, or 300 in total.