The San Francisco–based company, which has a Boston location, said the layoffs would create a “runway to ensure a full recovery.”