We still have a ways to go before coal is no longer used for generating electricity. I found gov stats showing in 2021, coal generated 899 billion kilowatt hours of electricity. Natural gas was 1,575 billion, nuclear was 778 billion and renewables like solar and wind were 826 billion. So coal is #2. To replace coals output we will have to build a lot of new solar and wind farms and power plans. No new nuclear plants are being built. We currently have 2000+ gas power plants, and less than 200 are under construction or being planned. Solar and wind farms are being built, but not fast enough to replace coal in 5 years. 80% of solar panels are made in China, and our relationship with China is quickly deteriorating, with military officials talking about war in 1-2 years. I would not count out domestic coal anytime soon.