Fix tsd reference resolve