You're talking about two different things. Haxe is a different language, while TS is a superset of JS (all JS is valid TS).
JS -> Haxe requires rewriting 10k lines before the program will run.
JS -> TS requires changing the file names, doing some imports, and adding "any" in a few places. The program will then run, and type information can be added gradually.