Looking at the IRS official website it says that profits from a sale of inventory purchases either in this country or foreign is ECI. Meaningy ecommerce camt get away without paying taxes https://www.irs.gov/individuals/international-taxpayers/effectively-connected-income-eci