async runTailscalePing(hostname, interval) {
        let timeout = interval * 1000 * 0.8;
        let res = await childProcessAsync.spawn("tailscale", [ "ping", "--c", "1", hostname ], {
            timeout: timeout,
            encoding: "utf8",
        });
        if (res.stderr && res.stderr.toString()) {
            throw new Error(`Error in output: ${res.stderr.toString()}`);
        }
        if (res.stdout && res.stdout.toString()) {
            return res.stdout.toString();
        } else {
            throw new Error("No output from Tailscale ping");
        }
    }
Runs the Tailscale ping command to the given URL.
@param {string} hostname The hostname to ping.
@param {number} interval Interval to send ping
@returns {Promise<string>} A Promise that resolves to the output of the Tailscale ping command
@throws Will throw an error if the command execution encounters any error.