To close your Interactive Brokers account, liquidate or transfer all of your current positions and have zero balance. Then go to "Account Management" tab and click on the "Close Account" button.