This documentation is for Onetap V4.
Onetap uses the Duktape v2.3 javascript engine.
Compatibility Table
Visual Studio Snippets for Onetap V4:
https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets
Put the content of the snippet file above into the snippet file you create.