If you're Betterment taxable account sold VTI within 30 days (before or after) your purchase of VTI in your HSA, then the loss you recognized on your VTI sale is not recognized and the loss is used to adjust the basis in the shares of VTI in your HSA. The problem with that is the loss goes "poof" since you never recognize losses on your HSA - it's tax free.