+1
typescript is to js as c++ is to c. Not a perfect abstraction and still with some problems, but realistically as good as were going to get any time soon.
It's even implemented the same way, a massive preprocessor built to take away most of the pain from something so ubiquitous that it's unfixable.