I strongly suggest TypeScript, which is (as you probably already know) JavaScript with static typing: in other words exactly what you want.
TypeScript adoption over plain JS is HUGE in the recent years, I wouldn't be surprised if it becomes the native default in browsers some time in the future.
TypeScript adoption over plain JS is HUGE in the recent years, I wouldn't be surprised if it becomes the native default in browsers some time in the future.