| Balance Sheet Details (Tables)
 | 3 Months Ended | 
| Mar. 31, 2023 | 
|---|
| Balance Sheet Related Disclosures [Abstract] |  | 
| Summary of Cash and Cash Equivalents | Cash, cash equivalents and restricted cash consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | March 31, 2023 |  | December 31, 2022 |  
|  | (in thousands) |  
| Cash and cash equivalents | $ | 207,850 |  |  | $ | 187,353 |  |  
| Short-term restricted cash | 964 |  |  | 982 |  |  
| Long-term restricted cash | 22 |  |  | 22 |  |  
| Total cash, cash equivalents and restricted cash | $ | 208,836 |  |  | $ | 188,357 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  | 
| Summary of Restriction Cash | Cash, cash equivalents and restricted cash consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | March 31, 2023 |  | December 31, 2022 |  
|  | (in thousands) |  
| Cash and cash equivalents | $ | 207,850 |  |  | $ | 187,353 |  |  
| Short-term restricted cash | 964 |  |  | 982 |  |  
| Long-term restricted cash | 22 |  |  | 22 |  |  
| Total cash, cash equivalents and restricted cash | $ | 208,836 |  |  | $ | 188,357 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  |  |  |  |  | 
| Summary of Inventory | Inventory consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | March 31, 2023 |  | December 31, 2022 |  
|  | (in thousands) |  
|  |  |  |  |  
| Work-in-process | $ | 88,654 |  |  | $ | 97,840 |  |  
| Finished goods | 60,931 |  |  | 62,704 |  |  
|  |  |  |  |  
|  |  |  |  |  
|  | $ | 149,585 |  |  | $ | 160,544 |  |  | 
| Summary of Property and Equipment | Property and equipment, net consists of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Useful Life (in Years)
 |  | March 31, 2023 |  | December 31, 2022 |  
|  |  |  | (in thousands) |  
| Furniture and fixtures | 5 |  | $ | 3,935 |  |  | $ | 3,924 |  |  
| Machinery and equipment | 3-5 |  | 77,427 |  |  | 74,258 |  |  
| Masks and production equipment | 2-5 |  | 53,848 |  |  | 50,970 |  |  
| Software | 3 |  | 13,517 |  |  | 10,111 |  |  
| Leasehold improvements | 1-5 |  | 35,335 |  |  | 34,236 |  |  
| Construction in progress | N/A |  | 532 |  |  | 7,602 |  |  
|  |  |  | 184,594 |  |  | 181,101 |  |  
| Less: accumulated depreciation and amortization |  |  | (106,903) |  |  | (102,083) |  |  
|  |  |  | $ | 77,691 |  |  | $ | 79,018 |  |  | 
| Summary of Price Protection Liability | Accrued price protection liability consists of the following activity: 
|  |  |  |  |  |  |  |  |  |  |  |  |  
|  | Three Months Ended March 31, |  
|  | 2023 |  | 2022 |  
|  | (in thousands) |  
| Beginning balance | $ | 113,274 |  |  | $ | 40,509 |  |  
|  |  |  |  |  
| Charged as a reduction of revenue | 28,536 |  |  | 41,473 |  |  
|  |  |  |  |  
| Payments | (38,013) |  |  | (13,633) |  |  
| Ending balance | $ | 103,797 |  |  | $ | 68,349 |  |  | 
| Summary of Accrued Expenses | Accrued expenses and other current liabilities consist of the following: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  | March 31, 2023 |  | December 31, 2022 |  |  |  
|  | (in thousands) |  |  |  
|  |  |  |  |  |  |  
|  |  |  |  |  |  |  
| Accrued technology license payments | $ | 5,619 |  |  | $ | 7,402 |  |  |  |  
| Accrued professional fees | 3,451 |  |  | 4,072 |  |  |  |  
| Accrued engineering and production costs | 2,089 |  |  | 2,560 |  |  |  |  
| Accrued restructuring | 3,176 |  |  | 1,082 |  |  |  |  
|  |  |  |  |  |  |  
| Accrued royalty | 1,345 |  |  | 1,662 |  |  |  |  
| Short-term lease liabilities | 10,063 |  |  | 10,489 |  |  |  |  
|  |  |  |  |  |  |  
| Accrued customer credits | 508 |  |  | 304 |  |  |  |  
|  |  |  |  |  |  |  
| Income tax liability | 12,840 |  |  | 8,895 |  |  |  |  
| Customer contract liabilities | 1,072 |  |  | 1,072 |  |  |  |  
| Accrued obligations to customers for price adjustments | 62,324 |  |  | 52,392 |  |  |  |  
| Accrued obligations to customers for stock rotation rights | 739 |  |  | 605 |  |  |  |  
| Contingent consideration - current portion | 3,000 |  |  | 2,941 |  |  |  |  
| Other | 6,717 |  |  | 6,679 |  |  |  |  
|  | $ | 112,943 |  |  | $ | 100,155 |  |  |  |  | 
| Summary of Accumulated Other Comprehensive Income (Loss) by Component | The following table summarizes the change in balances of accumulated other comprehensive income (loss) by component: 
|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  
|  |  |  | Cumulative Translation Adjustments |  |  |  | Pension and Other Defined Benefit Plan Obligation |  | Total |  
|  |  |  | (in thousands) |  
| Balance at December 31, 2022 |  |  | $ | (5,180) |  |  |  |  | $ | 4,159 |  |  | $ | (1,021) |  |  
| Other comprehensive loss before reclassifications, net of tax |  |  | (192) |  |  |  |  | — |  |  | (192) |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
| Balance at March 31, 2023 |  |  | $ | (5,372) |  |  |  |  | $ | 4,159 |  |  | $ | (1,213) |  |  |