I hope at some point in time we can use Typescript's type hints to replace/add a better JIT for v8 engine.
JITs create "shapes" or "hidden classes" anyways: https://v8.dev/blog/fast-properties . They also do many speculative optimizations.
(TypeScript is not sound.)