`this` might be okay, I'm not actually sure, but xterm.js uses `globalThis` and so I think consistency is better maybe?