Investors & landlords

If the ESPP shares are not locked into a company situation like a retirement or profit sharing account  and you have full access to the stock  then you can sell stock owned/housed in a regular broker account to offset the losses.