Bitburner Version 2.8.1
The bitburner in-game script error messages shows from line numbers for ts-files.
Please note the differences of the intern message and the debug console error message:
(line 6 vs line 30)

for example with this simple test script:
// import { NS } from "NetscriptDefinitions";
import{
}from "utils2"
function test():void{
}
export async function main(ns:NS) {
let t:string = undefined;
let l = t.length;
}