Fixing typescript-ts-mode in Emacs 30.2

Working around tree-sitter upgrades with a rewriter.