Lately I've been rewriting some old JS into TypeScript, and doing so really shows you what the value of TypeScript is. It's actually genuinely difficult to know what types are flowing through the code. In TS you only need to see the immediate function code, but in JS you might need to read quite far back and follow a really long code path.