I've started getting serious about type checking in JavaScript by using typescript/jsdoc notation to label functions and variables, and it's turning out to be really nice/useful/verbose.
I could go full on typescript, except the compiler is a node.js script, and I've still got serious reservations about that whole ecosystem.