I'm glad this comment section seems to agree that some fault lies on the game companies, too. I get it that parents gotta also parent, but when games are hiring behavior/psychology experts to design their games to become addictive and suck in people's money as effectively as possible.. adults struggle enough with resisting gaming addiction, let alone kids.
I know a guy that spent all of his free time, and on average $2,000 a month, on Genshin Impact.
Weird, it usually works fine without JS.