Specify a line range
A 30-line function instead of a 1,200-line file.
Specify a line range
Select the relevant range instead of attaching the entire file: make a selection in Cursor and press Cmd+L, or use @file.ts#L120-160. Every line the model reads counts toward your input; if the bug is in a 30-line function, the other 1,170 lines are pure waste.