KS3012
An import names a file that isn't there. Running the script stops on the import. The message suggests the closest file in that folder. While the import is broken, the names it would declare aren't reported as unknown, so this is the one error to fix.
<import path="../types/lnk.kscript" /> <!-- wrong: the file is link.kscript -->import "../types/lnk.kscript" // wrong: the file is link.kscript