That's a weird way of thinking. Just because you can do the same things in two languages, doesn't mean they're as nice to work with. Everything you do in any compiled language, you can do in assembly. But I don't think many people would argue that building everything in assembly is the least frustrating way of writing code.
In the case of js and ts: they can do the same, but ts is less frustrating because the added types catches bugs when writing code, it gives useful info about what a variable is meant to do, and my IDE gives way more useful hints.