[web] Convert most remaining file tree components and functions to Typescript GitOrigin-RevId: 1aabe371af489def891ffc420c7f28b4efc309ef