US dollar closes higher on Taipei forex at NT31.770