import { startInstanceServer } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.4/internals/remote-instance.js";
Returns a Promise
that resolves when the instance shuts down. Since the function is also
an asynchronous function, the actual return type is Promise<Promise<void>>
. That is, the
outer Promise
yields once the instance starts, and the inner Promise
yields once the
instance shuts down.