TypeScript enables editors to provide contextual documentation:

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