TypeScript (and JSDoc) vs JavaScript