powershell
Get-ChildItem -Path "." -Recurse -Include "*.js" | ForEach-Object -Begin { $Counter = 1 } -Process {
$newName = $_.BaseName + ".ts"
Rename-Item $_.FullName -NewName $newName
$Counter++
}
Get-ChildItem -Path "." -Recurse -Include "*.js" | ForEach-Object -Begin { $Counter = 1 } -Process {
$newName = $_.BaseName + ".ts"
Rename-Item $_.FullName -NewName $newName
$Counter++
}