Boil pasta in salted water according to package directions until al dente, then drain.
Melt butter in a large deep skillet set over medium heat.
Add sliced onions and cook for eighteen minutes, stirring often until deeply golden and caramelized.
Stir in fresh thyme, salt, and black pepper, cooking for one minute.
Pour beef broth into skillet, scraping browned bits from the pan bottom.
Simmer broth for five minutes until liquid reduces by half.
Stir in heavy cream and drained pasta, tossing until creamy sauce clings to noodles.
Sprinkle shredded Gruyere cheese over pasta and broil for two minutes until bubbly.