Copilot understands some convetions when there’s more than one way. I used it extensively with react bootstrap where I decided to go with the recommended way of
importing each components like import Tab from ‘react-bootstrap/Tab’
It also knows which components are used in the file.