How to get the theme directory URI?

I think you just want get_theme_root_uri(). Note that it doesn’t contain the trailing slash.

tech