@echo off
setlocal enabledelayedexpansion
rem Change to the directory where your .js files are located
cd /d "C:\path\to\legacy\codebase\"
rem Loop through all .js files and rename them to .ts
for %%f in (*.js) do (
set "filename=%%~nf"
ren "%%f" "!filename!.ts"
)
echo All .js files have been renamed to .ts files.
Simple:
Only 69 type errors, unless you just overuse
any
.At least he's asking Claude Sonnet 4.