Only buy the product for what it is, and not what it might be. Assuming they don't go out of their way to brick it post shutdown, you should still have an ok device.
I'm last to defend Google usually but not a great example. My inlaws got a refund for the hardware and new games they purchased/played and got to keep the controller. Everything else they've killed? Sure. I wish most collapsed ecosystems did this.