Make sure to have "typescript-language-server" globaly installed (https://github.com/typescript-language-server/typescript-language-server).
Open the example.js file and trigger the autocomplete.