When calc'ing capital gains tax, do I need to exclude any "seller credits" I received from the cost basis? Or can I just use final sale price + applicable + improvement?

ie I bought for $240K, had $2K in applicable closing costs + $7K in home improvements. However, on the Closing Disclosure there is also a line for "seller credits" of ($4K). Do I need to remove that from the basis, or is my adjusted cost basis $240K+$2K+$7K = $249K?