| Dec 31, 2020 | Dec 31, 2021 | Dec 31, 2022 | Dec 31, 2023 | Dec 31, 2024 |
|---|
| Net income (loss) | -22 | 135 | 289 | 24 | -65 |
|---|
| Depreciation, depletion and amortization | 7 | 24 | 18 | 56 | 78 |
|---|
| Accretion of discount on short-term investments | - | - | 10 | 26 | 30 |
|---|
| Gain on early extinguishment of debt | - | 3 | - | - | 53 |
|---|
| Stock-based compensation expense | 5 | 23 | 32 | 25 | 23 |
|---|
| Amortization of debt issuance costs | - | - | - | - | 4 |
|---|
| Inventory Write-down | - | 2 | - | 2 | 22 |
|---|
| Revenue recognized in exchange for debt principal reduction | 21 | 55 | 14 | - | - |
|---|
| Deferred income taxes | 18 | -17 | -18 | -8 | 28 |
|---|
| Other | - | - | - | - | -5 |
|---|
| Accounts receivable (including related party) | 3 | 47 | -18 | -23 | 9 |
|---|
| Inventories | 9 | 8 | 24 | 47 | 42 |
|---|
| Income taxes receivable | - | - | 2 | - | 23 |
|---|
| Government grant receivable | - | - | - | 19 | 0 |
|---|
| Prepaid expenses, other current and non-current assets | -2 | 4 | 6 | -2 | 1 |
|---|
| Accounts payable and accrued liabilities | -4 | 6 | 2 | 11 | 1 |
|---|
| Income taxes payable | - | 3 | 18 | -21 | - |
|---|
| Deferred revenue | - | - | - | - | 100 |
|---|
| Deferred government grant | - | - | - | 19 | 5 |
|---|
| Other current and non-current liabilities | -3 | -1 | -1 | -0 | 27 |
|---|
| Net cash provided by operating activities | 3 | 102 | 344 | 63 | 13 |
|---|
| Additions to property, plant and equipment | 22 | 124 | 327 | 262 | 186 |
|---|
| Purchases of short-term investments | - | - | 2,780 | 1,185 | 1,568 |
|---|
| Proceeds from sales of short-term investments | - | - | 1,463 | 508 | 166 |
|---|
| Proceeds from maturities of short-term investments | - | - | 281 | 1,015 | 1,598 |
|---|
| Investment in equity method investee | - | - | - | 10 | - |
|---|
| Proceeds from sale of property, plant and equipment | - | 0 | - | 0 | - |
|---|
| Proceeds from government awards used for construction | - | 4 | 5 | 3 | 0 |
|---|
| Net cash provided by (used in) investing activities | -22 | -119 | -1,357 | 69 | 10 |
|---|
| Proceeds from issuance of long-term debt | - | - | - | - | 748 |
|---|
| Payment of debt issuance costs | - | 18 | - | - | 21 |
|---|
| Payments to retire long-term debt | - | - | - | - | 429 |
|---|
| Purchase of capped call options | - | - | - | - | 65 |
|---|
| Repurchases of common stock | - | - | - | - | 225 |
|---|
| Principal payments on debt obligations and finance leases | - | - | - | - | 3 |
|---|
| Tax withholding on stock-based awards | - | 3 | 18 | 7 | 10 |
|---|
| Net cash used in financing activities | 522 | 666 | -24 | -10 | -5 |
|---|
| Net change in cash, cash equivalents and restricted cash | 503 | 649 | -1,038 | 121 | 19 |
|---|