Plug in instant pot and select the "Sautee" feature.
Melt butter in bottom of pan.
Place chicken thighs in pan of instant pot and sautee for two minutes.
Remove from pan, place trivet into instant pot pan.
Add in broth, lemon juice.
Place chicken thighs and onions on top of trivet.
Season with rosemary, salt and pepper.
Pressure cook on "Manual" setting for 10 minutes.
Allow to slow release for 5 minutes, then quick release til steam dissapates.