Somehow it's been a real pain to get autocompletion and typescript up and running, but I have it. Visual Studio and Sublime Text know about and can 'go to definition' for all the external Screeps functions.
But they somehow CAN'T figure out how to deal with Creep.prototype.doRole = function ()
It doesn't autocomplete it, it doesn't jump to the definition, it's as if it wasn't there.
Someone just tell me they have this working. This is really the last thing I need to actually get into this game.