정상 동작 확인된 환경: VSCode의 터미널 창
console.log("\\x1b[1A\\x1b[2K");
참고: 여러 줄 지우기
console.log("\\x1b[1A\\x1b[2K".repeat(10));