To enable autocomplete execute npm install @types/screeps @types/lodash in scripts where your screeps scripts root directory is.
npm install @types/screeps @types/lodash
scripts