tern-webidl TernJS definition based on WebIDL from Mozilla Firefox Installation Use npm install, take Vim for example: cd .vim/bundle/tern_for_vim npm i tern-webidl Then add ecma6, webidl in .tern-project lib part: { "libs": [ "ecma6", "webidl" ] }