{
  "ns-template": {
    "scope": "typescript",
    "prefix": "template",
    "body": [
      "import { NS } from '@ns'",
      "",
      "export async function main(ns : NS) : Promise<void> {",
      "\t//",
      "}"
    ]
  },
  "autocomplete": {
    "scope": "typescript",
    "prefix": "autocomplete",
    "body": [
      "// eslint-disable-next-line @typescript-eslint/no-unused-vars",
      "export function autocomplete(data : AutocompleteData, args : string[]) : string[] {",
      "\treturn [...data.servers]",
      "}"
    ],
    "description": "autocomplete"
  },
  "template-advanced":{
    "scope": "typescript",
    "prefix": "template-advanced",
    "body": [
      "import { NS } from '@ns'",
      "import { parse } from './lib/flag';",
      "import { sprintf } from './lib/printf';",
      "",
      "export async function main(ns: NS) : Promise<void> {",
      "    const flag = parse(ns.args.map(x=>x.toString()));",
      "    if(flag.h || flag.help){",
      "        const msg = ['run cmd']",
      "        msg.forEach(x=>ns.tprint(x));",
      "        return;",
      "    }",
      "}"
    ],
    "description": "autocomplete"
  }
}