Not to worry, I'm sure Nintendo will make a new shop available for a new upcoming console. You'll safely be able to rebuy everything you own again, and again, and again. There will probably be new ports or remastered versions of certain games as well so they'll work on those new systems with different controls, they're just waiting for everyone to quickly buy the old versions before the store closes, and then they'll make the announcements for the new versions.