how to update typescript version code example Example: how to update typescript npm install -g typescript@latest