If you're taxing wealth (and not income) then switching stocks into cash doesn't change the wealth. Then use the cash to pay the taxes which reduces the wealth.
If you're taxing wealth (and not income) then switching stocks into cash doesn't change the wealth. Then use the cash to pay the taxes which reduces the wealth.