Costco (COST) reported better-than-expected earnings on Thursday, fueled by solid revenue growth, strong e-commerce performance, and increased membership fees. The results extend a strong year for the retailer, whose shares have climbed nearly 50% in 2023, compared to the S&P 500's 27% gain. The stock closed at…