Global coal capacity is 2143 GW. There was 25 GW of retirements last year, which sounds like it will take forever to close down all coal plants.
However renewables grew with 585 GW last year. That's a lot. I'm hopeful nearly all coal plants will shut down quickly when renewables reach a critical mass. It could happen any decade now.