it's not really clear what you did.
the 1099B shows the sale price of the RSUs sold. your cost basis is the portion included in box 1 for the shares sold. normally if the compensation is at the same time as the sale, there should be little or no gain or loss.
the taxes taken out do not enter into the gain/loss computation.