You can download the trading activity statement from Interactive Brokers and simply drag and drop it into the upload panel to add the data to your portfolio
Tips to remember
Interactive Brokers will only let you download data files for one-year periods, so if you require multiple years you will need to repeat this process for each relevant period.