2021-12-24 03:21:18 +09:00
|
|
|
{
|
|
|
|
"ns-template": {
|
|
|
|
"scope": "typescript",
|
2021-12-25 17:13:00 +09:00
|
|
|
"prefix": "template",
|
2021-12-24 03:21:18 +09:00
|
|
|
"body": [
|
2021-12-25 16:46:52 +09:00
|
|
|
"import { NS } from '../NetscriptDefinitions'",
|
2021-12-25 17:13:00 +09:00
|
|
|
"",
|
2021-12-24 03:21:18 +09:00
|
|
|
"export async function main(ns : NS) : Promise<void> {",
|
2021-12-25 17:13:00 +09:00
|
|
|
"\t//",
|
2021-12-24 03:21:18 +09:00
|
|
|
"}"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"autocomplete": {
|
2021-12-25 16:46:52 +09:00
|
|
|
"scope": "typescript",
|
2021-12-24 03:21:18 +09:00
|
|
|
"prefix": "autocomplete",
|
|
|
|
"body": [
|
2021-12-25 17:13:00 +09:00
|
|
|
"// eslint-disable-next-line @typescript-eslint/no-unused-vars",
|
|
|
|
"export function autocomplete(data : ServerData, args : string[]) : string[] {",
|
|
|
|
"\treturn [...data.servers]",
|
|
|
|
"}"
|
2021-12-24 03:21:18 +09:00
|
|
|
],
|
|
|
|
"description": "autocomplete"
|
2021-12-25 17:13:00 +09:00
|
|
|
}
|
2021-12-24 03:21:18 +09:00
|
|
|
}
|