True. Languages don't write bad code, programmers do. One of the things I always taught (particularly with reference to C) was that just because you can do something in a language, doesn't mean that you should. (See: https://www.ioccc.org/ for proof!)Nothing wrong with the language, although it does allow some truly horrible ways of doing things, which some people have then elevated to the "right" way of coding. Typescript definitely makes writing JS a nicer experience though, and makes mistakes a lot easier to avoid.
I must confess, I've stayed away from Typescript just because of the "Invented by Microsoft" label.