I don't mean to derail discussion about a cool project, but it still seems to imply xterm.js is somehow "improper" emulation (though I might be misreading it).
Terminal emulators are all approximations of terminals, regardless of the programming language.
They are approximations but Ghostty has intentional effort towards correctness, more than I've seen from other terminal emulators.