Seconding TypeScript. If you are a js dev looking to pick up something new, just rename a .js file to .ts, open it in vscode, watch the magic. It will, I think, make you a better js dev.
Java dev you mean ;)
I dont see how types make you a better dev, its like saying automated dictionary in input text fields make you a better speller. It just makes you a lazy speller.
Types have fundamental meaning and function way beyond simply being a dictionary. Javascript's lack of type systems means it's crippled when it comes to serious numeric computation, simulation or modelling. Even a 64-bit number can;t be stored properly, to say nothing of SIMD operations.