TypeScript enables editors to provide contextual documentation:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e13c4670-1196-42a2-9f2d-e6de8f70361b/Untitled.png

You’ll never forget whether String.prototype.slice takes (start, stop) or (start, length) again!