Relationship between trade deficit and borrowing
We count the sale of financial assets as borrowing. You simply sell a document indicating that you will pay the buyer in the future, which is simply a debt.

Actually, sales of financial assets cause capital account to increase, so that, current account balance is compensated by the sales of financial assets which is basically a capital account surplus. Hence

$$
Current Account + Capital Account = 0
$$