From d324a93bacd41a9ad93fbe1cb4a64bc2a57787b4 Mon Sep 17 00:00:00 2001 From: Michael Ficocelli Date: Mon, 4 May 2026 14:29:52 -0700 Subject: [PATCH] DNET: Remove TS type annotation from doc example script (#2721) --- src/Documentation/doc/en/programming/darknet.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Documentation/doc/en/programming/darknet.md b/src/Documentation/doc/en/programming/darknet.md index 244e7640c..487e276c9 100644 --- a/src/Documentation/doc/en/programming/darknet.md +++ b/src/Documentation/doc/en/programming/darknet.md @@ -240,7 +240,7 @@ export const serverSolver = async (ns, hostname) => { /** Authenticates on 'ZeroLogon' type servers, which always have an empty password. * @param {NS} ns - * @param {string} hostname - the name of the server to attempt to authorize on + * @param {string} hostname - the name of the server to attempt to authorize on */ const authenticateWithNoPassword = async (ns, hostname) => { const result = await ns.dnet.authenticate(hostname, ""); @@ -248,9 +248,10 @@ const authenticateWithNoPassword = async (ns, hostname) => { return result.success; }; -// This lets you tab-complete putting "--tail" on the run command so you can see the script logs as it runs, if you want -// If you add support to the script to take other arguments, you can add them here as well for convenience -export function autocomplete(data: AutocompleteData) { +/** This lets you tab-complete putting "--tail" on the run command so you can see the script logs as it runs, if you want + * If you add support to the script to take other arguments, you can add them here as well for convenience + * @param {AutocompleteData} data */ +export function autocomplete(data) { return ["--tail"]; } ```