method promises.Readline.prototype.clearLineRe-exportimport { promises } from "https://deno.land/std@0.177.0/node/readline.ts"; const { Readline } = promises; clearLine(dir)Clears the current line the cursor is on. ParametersdirDirection to clear: -1 for left of the cursor +1 for right of the cursor 0 for the entire line