How do I add libraries after importing an Arduino sketch

Installing to your project via the PIO Home GUI downloads the library files (see the change in the .pio\libdeps\uno folder between the two screenshots) into your projects libdeps folder, but doesn’t add it to the platformio.ini lib_deps… which is quite an oversight… as well as the default of installing to global storage.

image