Get your taxes done using TurboTax

Thanks. At the time I sell stocks, how can I pay taxes on these profits without being a US resident anymore?