But in the above code I wouldn't know at the time I was calling import.
However, I think I've got it nailed down in this node.
Basically, the import happens after all the messing about, so I don't need to do anything - the 'use' at the script level will call import after I've finished loading things.