Renewables (especially solar) & batteries are on an unstoppable path to global domination. The simple reason? Cost. Thanks to economies of scale, they are now the cheapest source of energy - and they still have far to go in getting even cheaper. By the early 2030's, they will be vastly cheaper than the alternatives.
The electrification of the economy that this is driving in China is on the scale of the 19th Industrial Revolution in Europe. What today is China, will tomorrow be the world. Many in the rest of the world seem caught in the tailspin. In particular, clinging to outdated narratives courtesy of the Fossil Fuel industry.
But that's a big mistake. From now on, the only way to credibly plan for and model the future is to talk about it as what it really will be - a place where renewables and batteries will provide almost all energy.
Peak Oil Is Coming: And petrostates are not ready for it
No, the headline is correct. You're confusing TW & TWh.
An analogy here is how much energy a car engine produces to run the car at any given moment, and the entire energy the car produces over the course of a whole year (which is the figure you quote).
As there are an average of 1,000 - 3,000 hours of sunshine per year (depending on location), if the solar panels were at maximum efficiency - they would produce 10,000 - 30,000 TWh per year.
That upper figure is about the world's annual output in TWh.