Assuming the CSV file has the internal id, in the ...
# general
j
Assuming the CSV file has the internal id, in the mapping stage of the CSV import, on the Sales Order Item line click the pencil icon and switch from Name to Internal id