People are already not using libraries because they'd rather rot their brains on TikTok than read a book. (Also, for information lookup, the internet and search engines exist, and have for a while now.) This has no actual causal relation.
I rotate through the libraries near me with my kids.
They are every bit as busy now as I remember them being when I was a kid.