// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. importtype{CallbackWithError}from"./_fs_common.ts"; exportfunctionclose(fd:number, callback:CallbackWithError):void{queueMicrotask(()=>{try{Deno.close(fd);callback(null);}catch(err){callback(err);}});} exportfunctioncloseSync(fd:number):void{Deno.close(fd);}