Income Taxes - Schedule of reconciliation of the beginning and ending balances of the total amounts of gross unrecognized tax benefits (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Gross unrecognized tax benefits, beginning of year | $ 1,191 | $ 1,157 | $ 2,343 |
| Increases in tax positions for prior years | 200 | 29 | 22 |
| Decreases in tax positions for prior years | (4) | (33) | (1,233) |
| Increases in tax positions for current year | 0 | 59 | 37 |
| Lapse in statute of limitations | 0 | (21) | 0 |
| Settlements | 0 | 0 | (12) |
| Gross unrecognized tax benefits, end of year | $ 1,387 | $ 1,191 | $ 1,157 |