KS3009
Something from a package that isn't imported. Add the import at the top of the script. The quick fix does it for you.
<import package="KScript.IO" />
<let name="text" value="@read_text(./notes.txt)" />import KScript.IO
$text = @read_text(./notes.txt)